time complexity missing piece